import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { CountService } from '../../services/count.service';

interface classInfo {
  name?: string;
  type?: string;
}
@Component({
  selector: 'app-class',
  standalone: true,
  imports: [],
  templateUrl: './class.component.html',
  styleUrl: './class.component.less',
})
export class ClassComponent {
  constructor(public router: ActivatedRoute, private count: CountService) {
    this.router.queryParams.subscribe((params: classInfo) => {
      console.log(params.name);
    });
  }
  addOne() {
    this.count.addCount();
  }
}
